package com.cypress.dms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import com.cypress.dms.entity.Resource;
import com.cypress.dms.mapper.ResourceMapper;
import com.cypress.dms.service.ResourceService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 資源表;(resource)表服务实现类
 * @author : 
 * @date : 2025-9-28
 */
@Transactional
@Slf4j
@Service
public class ResourceServiceImpl extends ServiceImpl<ResourceMapper, Resource> implements ResourceService {


    @Autowired
    private ResourceMapper resourceMapper;

    @Override
    public List<Resource> selectByParentId(Long parentResourceId, String granteeId) {
        return resourceMapper.selectByParentId(parentResourceId, granteeId);
    }
}